package com.softserveinc.lahire.builders;

import java.io.BufferedReader;

public class Director {
	
	private RequestBuilder requestBuilder;

	public void setRequestBuilder(RequestBuilder requestBuilder) {
		this.requestBuilder = requestBuilder;
	}

	public Request getRequest() {
		return requestBuilder.getRequest();
	}

	public void constructRequest(BufferedReader in, String path) {
		requestBuilder.createNewRequest(in, path);
		requestBuilder.buildHeaders();
		requestBuilder.buildParameters();
	}

}
